package com.wt.order.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.omg.PortableInterceptor.INACTIVE;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 吴涛
 * @date 2022/5/10 16:40
 * @qq 337144203
 */
@Data
public class Category implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer type;//类型   1 菜品分类 2 套餐分类

    private String name;

    private Integer sort;//顺序

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)//插入时和更新时填充字段
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

}
